ValueFolderTemp2='/sps/isc/rneveu/EtudeIRM/Nature/ResultsJournal/';
load([ValueFolderTemp2 'ResultsThirdLevelDistributionOutliers.mat']);
ValueFolderTemp='/sps/isc/rneveu/EtudeIRM/Nature/ResultsEditor/';
VecResultsTemp=[];
for n1=1:323
    ValueTemp=find(VecResults(:,1)==n1);
    if size(ValueTemp,1)==1&&VecResults(ValueTemp,2)<=1.25
        load([ValueFolderTemp 'FileAnalysisCharacteristicsEditor' num2str(n1) '.mat']);
        VecResultsTemp=[VecResultsTemp;VecResultsEditor(1,1) VecResultsEditor(1,3) VecResultsEditor(1,19) VecResultsEditor(1,23) VecResultsEditor(1,27)];
    end
end
VecResultsTemp2=[];
for n1=1:4
    ValueTemp=find(isnan(VecResultsTemp(:,n1))==0&isnan(VecResultsTemp(:,end))==0);
    [ValueResults,ValueResults2]=corr(VecResultsTemp(ValueTemp,n1),VecResultsTemp(ValueTemp,end),'type','pearson');
    [ValueResults3,ValueResults4]=corr(VecResultsTemp(ValueTemp,n1),VecResultsTemp(ValueTemp,end),'type','spearman');
    VecResultsTemp2=[VecResultsTemp2;ValueResults ValueResults2 ValueResults3 ValueResults4];
end
for n1=1:2
    ValueTemp=find(isnan(VecResultsTemp(:,(n1-1)*2+1))==0&isnan(VecResultsTemp(:,(n1-1)*2+2))==0);
    [ValueResults,ValueResults2]=corr(VecResultsTemp(ValueTemp,(n1-1)*2+1),VecResultsTemp(ValueTemp,(n1-1)*2+2),'type','pearson');
    [ValueResults3,ValueResults4]=corr(VecResultsTemp(ValueTemp,(n1-1)*2+1),VecResultsTemp(ValueTemp,(n1-1)*2+2),'type','spearman');
    VecResultsTemp2=[VecResultsTemp2;ValueResults ValueResults2 ValueResults3 ValueResults4];
end
for n1=1:2
    ValueTemp=find(isnan(VecResultsTemp(:,n1))==0&isnan(VecResultsTemp(:,2+n1))==0);
    [ValueResults,ValueResults2]=corr(VecResultsTemp(ValueTemp,n1),VecResultsTemp(ValueTemp,n1+2)-VecResultsTemp(ValueTemp,n1),'type','pearson');
    [ValueResults3,ValueResults4]=corr(VecResultsTemp(ValueTemp,n1),VecResultsTemp(ValueTemp,n1+2)-VecResultsTemp(ValueTemp,n1),'type','spearman');
    VecResultsTemp2=[VecResultsTemp2;ValueResults ValueResults2 ValueResults3 ValueResults4];
end
VecResultsTemp2
    